x86/hpet: eliminate cpumask_lock
authorJan Beulich <jbeulich@novell.com>
Fri, 25 Mar 2011 09:03:17 +0000 (09:03 +0000)
committerJan Beulich <jbeulich@novell.com>
Fri, 25 Mar 2011 09:03:17 +0000 (09:03 +0000)
commit662f524483de23084ae4dde930fa7570fb15e033
treea6c21f8f4148c64c55614aa8c261fb96f8c1cc96
parent76fb24cd13ea2bb5e5c10ab6ecea857196666ffd
x86/hpet: eliminate cpumask_lock

According to the (now getting removed) comment in struct
hpet_event_channel, this was to prevent accessing a CPU's
timer_deadline after it got cleared from cpumask. This can be done
without a lock altogether - hpet_broadcast_exit() can simply clear
the bit, and handle_hpet_broadcast() can read timer_deadline before
looking at the mask a second time (the cpumask bit was already
found set by the surrounding loop).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Gang Wei <gang.wei@intel.com>
xen/arch/x86/hpet.c